﻿namespace ZR.Model.Souvenir.Dto
{
    public class OrderDto
    {
        public int Id { get; set; }
        
        [JsonConverter(typeof(ValueToStringConverter))]
        public long UserId { get; set; }
        
        /// <summary>
        /// 实际付款金额(单位是元,保留两位小数)
        /// </summary>
        public decimal Payment { get; set; }
        
        /// <summary>
        /// 支付时间
        /// </summary>
        public DateTime PaymentTime { get; set; }
        
        public List<OrderItemDto> OrderItems { get; set; }
    }

    public class OrderQueryDto : PagerInfo
    {
        [JsonConverter(typeof(ValueToStringConverter))]
        public long UserId { get; set; }
    }
}